package com.tang.consumer.annotation;

import com.tang.consumer.config.RpcScannerConfig;
import org.springframework.context.annotation.Import;
import org.springframework.stereotype.Indexed;

import java.lang.annotation.*;

/**
 * @author Tang
 * @classname RpcService
 * @description [  ]
 * @date 2021/1/24 15:35
 */
@Target(ElementType.TYPE)
@Retention(RetentionPolicy.RUNTIME)
@Documented
@Indexed
@Import(value = {RpcScannerConfig.class})
public @interface EnableRpc {

    /**
     * 扫描路径
     * @return
     */
    String basePackage() default "";

}